Attribute Properties Interface |
|
These properties determine the behaviour of the attribute in the model to which it is being added.
Table 1. Attribute Properties
Property | - | Description |
---|---|---|
General | Name | The name of the attribute |
Mapped Name | The name that corresponds to a column of the database table. This is also the name that is used to generate the accessor and mutator methods of an attribute. It is the name by which the attribute is implemented in the Java class. If you do not want to retain the default names, you may replace these with names of your preference.For example, in an attribute which has CustomerID as the
|
|
Type | The data type of the attribute. The following data types are supported:
|
|
Persistence | Determines the mode of persistence. The acceptable values are:
|
|
Changeability | Indicates the changeability property of the attribute. The permissible values are:
|
|
Unique | Determines whether the attribute is part of the unique identifier for the class | |
Required | Indicates the necessity of providing a value for the attribute | |
Other | Derived | Displays the class from which this attribute is derived |
Scale | Indicates the number of digits to the right of the decimal point. This property is not applicable if you select String as the data type. | |
Precision | Indicates the total number of digits used | |
Initial | Indicates the initial value of the attribute, applicable only for validate requests | |
Lower/Upper Bounds | Max Length | Indicates the maximum length of the attribute. This is applicable for string data type only. Note: For standard classes, the max length is determined by the actual length of the data. |
Min Length | Indicates the minimum length of the attribute. This is applicable for string data type only. | |
Min Inclusive | Indicates the lower limit of the value, including the value. This is applicable for all data types excluding string. | |
Min Exclusive | Indicates the lower limit of the value, excluding the value. This is applicable for all data types excluding string. | |
Max Inclusive | Indicates the upper limit of the value, including the value. This is applicable for all data types excluding string. | |
Max Exclusive | Indicates the upper limit of the value, excluding the value. This is applicable for all data types excluding string. |